let num;

let right = 50;

let flag = false;
while(!flag){
    num=+prompt('请猜测数字');

    if(num===right){
        alert("okok")
        break;
    }

    if(num>right)alert("大了");
    else alert("小了");

}





